package demoMod.stsconsole.commands;

import demoMod.stsconsole.dungeons.AbstractDungeon;
import demoMod.stsconsole.enums.ErrType;

import java.util.Scanner;

public class Map extends AbstractCommand {
    @Override
    public void execute(String[] args, Scanner sc) {
        if (args.length > 0) {
            this.errMsg(ErrType.WRONG_ARGUMENT);
            return;
        }
        System.out.println(AbstractDungeon.currDungeon.map);
    }

    @Override
    public boolean requiredPrompt(String currentPrompt) {
        return currentPrompt.contains("Dungeon/");
    }
}
